From c66f2ca9eb76b8a8dca14d2dc37416436b7fbfe1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 12 May 2020 21:29:15 -0400 Subject: [PATCH] x11: Avoid a critical in clipboard data transfer The handler we are calling here asserts that it gets an interned string as mime_type. So give it one. Fixes: #2736 --- gdk/x11/gdkselectionoutputstream-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c index cfacb13ac5..bdd4c57d08 100644 --- a/gdk/x11/gdkselectionoutputstream-x11.c +++ b/gdk/x11/gdkselectionoutputstream-x11.c @@ -892,7 +892,7 @@ gdk_x11_selection_output_streams_request (GdkDisplay *display, target, 8, timestamp); - handler (stream, target, user_data); + handler (stream, mime_type, user_data); return TRUE; } } -- 2.30.2